package com.xx.bysj.service;


import com.xx.bysj.dto.HnInformation;
import com.xx.bysj.dto.HnUser;
import com.xx.bysj.utils.Result;
import org.springframework.security.core.Authentication;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService {
    /**
     * 注册方法
     * @param user
     * @param type
     * @return
     */
    Result register(HnUser user, String type);

    Result updateUserInformation(HnInformation hnInformation);

    Result query(HnInformation information,int page,int pageSize);

    void mongoDbShow(String id, HttpServletResponse response);

    Result uploadMongoDb(MultipartFile file, HttpServletRequest request, Authentication authentication);

    Result distributeRole(HnUser user);

    Result updateUserPassword(HnUser user, Authentication authentication);

    Result queryEmployee(HnInformation information, int page, int limit);

    Result querySalary(HnInformation information, int page, int limit);

    Result salary(Integer userId, Authentication authentication);
}
